/**
 * DoNothingFilter.java
 * 
 * @date: 2012-02-09
 * @author: Xiaoyu Guo (MUN# 200982155)
 * This file is part of the course project for COMP 6752, 
 * Application of Computer Graphics. All the file is written
 * by myself.
 */
package mun.cs6752.project.filter.DoNothing;

import java.awt.image.BufferedImage;

import mun.cs6752.project.filter.abstractClasses.AbstractImageFilter;
import mun.cs6752.project.filter.abstractClasses.AbstractImageFilterControl;
import mun.cs6752.project.filter.interfaces.IImageFilterParameter;
import mun.cs6752.project.filter.interfaces.IImageProvider;

/**
 * @author Xiaoyu Guo
 *
 */
public class DoNothingFilter extends AbstractImageFilter {

    /**
     * @param provider
     */
    public DoNothingFilter(IImageProvider provider) {
        super(provider, "Do Nothing");
    }

    /* (non-Javadoc)
     * @see mun.cs6752.project.filter.interfaces.IImageFilter#execute(java.awt.image.BufferedImage, mun.cs6752.project.filter.interfaces.IImageFilterParameter)
     */
    @Override
    public BufferedImage execute(BufferedImage srcImage, IImageFilterParameter param) {
        return srcImage;
    }

    /* (non-Javadoc)
     * @see mun.cs6752.project.filter.interfaces.IImageFilter#getControl()
     */
    @Override
    public AbstractImageFilterControl getControl() {
        return new AbstractImageFilterControl(provider, this){
            private static final long serialVersionUID = 8624931857566264243L;

            @Override
            public IImageFilterParameter getParameter() {
                // TODO Auto-generated method stub
                return null;
            }};
    }

}
